package com.lier.gulimall.product.feign;

import com.lier.common.to.es.SkuEsModel;
import com.lier.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author liyd
 * @description
 * @date 2025/6/30 17:32
 */
@FeignClient("gulimall-search")
public interface SearchFeignService {

    /**
     * 远程search服务保存检索数据
     * @param skuEsModels 检索数据
     * @return 远程结果
     */
    @PostMapping("/search/save/product")
    public R productStatusUp(@RequestBody List<SkuEsModel> skuEsModels);
}
